1ddd37c13c64ad31d7397d8472b950cb65c8fbc2,AngularJS/src/org/angularjs/index/AngularJSIndexingHandler.java,AngularJSIndexingHandler,processCommentMatch,#PsiComment#JSDocumentationProcessor.MetaDocType#String#String#String#String#String#JSSymbolVisitor#,59
Before Change
if (type == JSDocumentationProcessor.MetaDocType.NAME &&
matchName != null && matchName.contains(DIRECTIVE) && hasDirectiveName(remainingLineContent)) {
assert remainingLineContent != null;
visitor.storeAdditionalData(AngularDirectivesIndex.INDEX_ID.toString(), getAttributeName(remainingLineContent.substring(1)),
comment.getTextOffset() + comment.getText().indexOf(matchName));
}
}
After Change
assert remainingLineContent != null;
final int offset = comment.getTextOffset() + comment.getText().indexOf(matchName);
final String attributeName = getAttributeName(remainingLineContent.substring(1));
visitor.storeAdditionalData(comment, AngularDirectivesIndex.INDEX_ID.toString(), attributeName, offset);
visitor.storeAdditionalData(comment, AngularSymbolIndex.INDEX_ID.toString(), attributeName, offset);
}
}